﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
namespace GenCode
{
    public class Global1
    {
        public static string chuoi = "",Server="",user="",pass="";
        public static bool win = true;
        public static string ConnectionString()
        {
            StreamReader hung = new StreamReader("hung.txt");
            chuoi = hung.ReadLine();
            hung.Close();
            return chuoi;
        }

        public static string QuyenWin(string data)
        {
            return "Data Source=" + Server + ";Initial Catalog=" + data + ";Integrated Security=True;";
        }
        public static string QuyenAuthen(string data)
        {
            return "Data Source=" + Server + ";Initial Catalog=" + data + ";User Id=" + user + ";Password=" + pass + ";";
        }
    }
}
